package com.yx.frame.log;

import com.yx.frame.authority.User;


public interface LogWriter {

  
  public static final int lOG_DEBUG = 0;

  
  public static final int lOG_INFO = 1;

  
  public static final int lOG_WARN = 2;

  
  public static final int lOG_ERROR = 3;

 
  public static final int lOG_FATAL = 4;

 
  public static final String[] lOG_MES = {
      "调试", "信息", "警告", "错误", "致命"};

  public void write(int level, User user, String module, String messageString);

 
  public void debug(User user, String module, String messageString);

  
  public void info(User user, String module, String messageString);

  
  public void warn(User user, String module, String messageString);

  
  public void error(User user, String module, String messageString);

 
  public void fatal(User user, String module, String messageString);

  
  public void calcTimeBegin();

  
  public long calcTimeEnd();

  
  public void setLogFileName(String name);

  
  public String getLogFileName();

  
  public void setLogLevel(int level);

  
  public int getLogLevel();




}
